package backend.majiong.yaku.yaku;

import backend.MainGame;
import backend.majiong.Player;
import backend.majiong.yaku.AbstractYaku;
import backend.majiong.yaku.HandCombo;

public class Tumo extends AbstractYaku {

    @Override
    public boolean checkYaku(Player player, HandCombo combo, MainGame mainGame) {
        if (combo.getIsMengQing() && combo.getSpecialYakuFlag().isZiMo()) {
            return true;
        }
        return false;
    }

    @Override
    public String getYakuName() {
        return "门前清自摸";
    }

    @Override
    public Integer getYakuNum(boolean isMenQing) {
        return 1;
    }

}
